package com.zdj.presentation.helpers;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;

/**
 * 图片加载帮助类
 * Created by zdj on 16-6-13.
 */

public final class ImageLoadHelper {

    private static final String TAG = "ImageLoadHelper";

    /**
     * Glide 框架 加载一般图片
     * @param context
     * @param url
     * @param imageView
     */
    public static void loadImageByGlide(Context context, String url, ImageView imageView){
        Glide.with(context)
                .load(url)
                .thumbnail(0.2f)
                .diskCacheStrategy(DiskCacheStrategy.ALL)
                .into(imageView);

    }


}
